package com.ysd.crm.dao;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.ysd.crm.model.RoleModule;

public interface RoleModuleDao extends JpaRepository<RoleModule, Integer>{

	//根据id删除角色模块
	@Transactional
	@Modifying
	@Query(value = "delete from role_module_tb where role_id=:rid",nativeQuery = true)
	void delByRid(int rid);
}
